package com.example;

import lombok.Getter;

@Getter
public enum EchartTypeEnum {
	/**
	 *
	 */
	ZHUZHUANGTU("柱状图", "chart01"),
	ZHEXIANTU("折线图", "chart02"),
	SANDIANTU("散点图", "chart03"),
	LEIDATU("雷达图", "chart04"),
	BINGTU("饼图", "chart05");
	private String name;
	private String type;

	EchartTypeEnum(String name, String type) {
		this.name = name;
		this.type = type;
	}

	public static EchartTypeEnum getByType(String type) {
		for (EchartTypeEnum value : EchartTypeEnum.values()) {
			if (value.type.equals(type)) {
				return value;
			}
		}
		return null;
	}
}
